package com.gadgets.busi.bm03;

import java.util.HashSet;
import java.util.Random;

/**
 * 功能说明：
 *
 * @author Unclexiu
 * @version V202101.00.000
 * @data 2022-08-25
 * 修改记录：  修改日期          修改人员    修改说明
 * 2022-08-25  xiujunqing   创建文件
 */
public class JapanNameGenerator {

	public static final String[] XING = new String[]{
			"樱井","织田","早稻田","泷泽","西园寺","三条","九条","羽柴","德川","酒井","本多","神原",
			"金川","北条","武田","足立","筒井","陇川","丹羽","饭富","小田原","吉川","小早川",
			"铃木","高桥","田中","吉田","千叶","新井","藤原","有栖川","柴田","楠木","爱宕","鸟羽",
			"鸟居","姊小路","宇喜多","原国","佐田","六角","蒲野","明智","长田","安海","多岐川","雪野",
			"村津","长浦","富木","桑原","杉本","山本","本愿寺","下间","朝桐","鸭川","仓井","种子岛",
			"川中","木下","蜂须贺","浅间","安部","安倍","大久保","朝比奈","石井","黑田","竹中","斋藤",
	};

	public static final String[] NV_MING = new String[]{
			"光","忍","岚","兰","梅","艾","圆","媛","爱","晴","雅","山奈","樱",
			"丽","绫波","贞","甄","结衣","悠亚","妃","千雪","雪","真宫","琉璃",
			"薰","春上","杏子","幸子","柳纱","织雪","春丽","真由美","美智子","枝子",
			"稚予","美续","真由美","筠","筱","英美","雅美","小光","菊","桐","菱",
			"玲","绫","灵","莉","丽香","香","莉香","玉","玉子","晴心","夏江","纯子",
			"春子","香佑","柚","尚美","薰里","和歌子","花梨","妙绪","早苗","宜子",
			"佳利","麻美","郁美","安季子","惠理","香织","美津枝","泉美","晴美","富慧",
			"由纪子","由纪","芳子","直希","梨乃"
	};

	public static final int[] GROUP_NUM = new int[]{
			8,8,5,10,5,5,8,4,4,10,10,10,8
	};

	public static void main(String[] args) {
		HashSet<String> repeat = new HashSet<>();
		Random random = new Random();
		int k = 1;
		for (int group : GROUP_NUM) {
			System.out.println("--------------------- 第"+k+"组---------------------------");
			while (group>0){
				int i = random.nextInt(XING.length);
				int j = random.nextInt(NV_MING.length);
				if(!repeat.contains(i+"000"+j)){
					repeat.add(i+"000"+j);
					group--;
					System.out.println(XING[i]+NV_MING[j]);
				}
			}
		}

	}

}
